package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Kcsl {
    private String kcslid;
    private String proid;
    private Integer prototalnum;

    @Id
    @Column(name = "kcslid")
    public String getKcslid() {
        return kcslid;
    }

    public void setKcslid(String kcslid) {
        this.kcslid = kcslid;
    }

    @Basic
    @Column(name = "proid")
    public String getProid() {
        return proid;
    }

    public void setProid(String proid) {
        this.proid = proid;
    }

    @Basic
    @Column(name = "prototalnum")
    public Integer getPrototalnum() {
        return prototalnum;
    }

    public void setPrototalnum(Integer prototalnum) {
        this.prototalnum = prototalnum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Kcsl kcsl = (Kcsl) o;

        if (kcslid != null ? !kcslid.equals(kcsl.kcslid) : kcsl.kcslid != null) return false;
        if (proid != null ? !proid.equals(kcsl.proid) : kcsl.proid != null) return false;
        if (prototalnum != null ? !prototalnum.equals(kcsl.prototalnum) : kcsl.prototalnum != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = kcslid != null ? kcslid.hashCode() : 0;
        result = 31 * result + (proid != null ? proid.hashCode() : 0);
        result = 31 * result + (prototalnum != null ? prototalnum.hashCode() : 0);
        return result;
    }
}
